/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-08-17
 * Time: 15:00
 */
public class Test {
    public static void main(String[] args) {
        MyBinaryTree tree=new MyBinaryTree();
        tree.createBinaryTree();
//        tree.preOrder(tree.root);
//        System.out.println();
//        tree.inOrder(tree.root);
//        System.out.println();
//        tree.postOrder(tree.root);
        System.out.println(tree.size(tree.root));
        System.out.println(tree.getLeafNodeCount(tree.root));
        int ret=tree.getKLevelNodeCount(tree.root, 3);
        System.out.println(ret);
        System.out.println(tree.getHeight(tree.root));
        System.out.println((tree.find(tree.root, 1).val));
    }
}
